﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class GameplayPVEPveFindPathManagerWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Gameplay.PVE.PveFindPathManager);
			Utils.BeginObjectRegister(type, L, translator, 0, 26, 0, 0);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Dispose", _m_Dispose);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitAstarMap", _m_InitAstarMap);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateOffset", _m_UpdateOffset);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToNext", _m_ToNext);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearStage", _m_ClearStage);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateSingleCollider", _m_UpdateSingleCollider);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "DrawBound", _m_DrawBound);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsSameGrid", _m_IsSameGrid);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPointByObstacle", _m_GetPointByObstacle);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPathByObstacle", _m_GetPathByObstacle);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindAttackPosition", _m_FindAttackPosition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetMortalPath", _m_GetMortalPath);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVehiclePath", _m_GetVehiclePath);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddUnit", _m_AddUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveUnit", _m_RemoveUnit);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddObstacle", _m_AddObstacle);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveObstacle", _m_RemoveObstacle);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddStaticBlocks", _m_AddStaticBlocks);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsClear", _m_CheckIsClear);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindValidPosition", _m_FindValidPosition);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsWalkable", _m_CheckIsWalkable);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsCanWalkForward", _m_CheckIsCanWalkForward);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsOutOfBound", _m_CheckIsOutOfBound);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirstAvailablePosition", _m_GetFirstAvailablePosition);
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0);
			
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance);
            
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Gameplay.PVE.PveFindPathManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.PveFindPathManager constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Gameplay.PVE.PveFindPathManager();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.PveFindPathManager constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Initialize(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Initialize(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Dispose(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Dispose(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitAstarMap(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _offset;translator.Get(L, 2, out _offset);
                    
                    gen_to_be_invoked.InitAstarMap( _offset );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UpdateOffset(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _offset;translator.Get(L, 2, out _offset);
                    
                    gen_to_be_invoked.UpdateOffset( _offset );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ToNext(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _stageId = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.ToNext( _stageId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ClearStage(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.ClearStage(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Update(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Update(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UpdateSingleCollider(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
                    
                    gen_to_be_invoked.UpdateSingleCollider( _id, _position );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DrawBound(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.DrawBound(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_IsSameGrid(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _a;translator.Get(L, 2, out _a);
                    UnityEngine.Vector3 _b;translator.Get(L, 3, out _b);
                    
                        var gen_ret = gen_to_be_invoked.IsSameGrid( _a, _b );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetPointByObstacle(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Vector3 _start;translator.Get(L, 3, out _start);
                    UnityEngine.Vector3 _end;translator.Get(L, 4, out _end);
                    
                        var gen_ret = gen_to_be_invoked.GetPointByObstacle( _id, _start, _end );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetPathByObstacle(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 6&& translator.Assignable<System.Collections.Generic.List<UnityEngine.Vector3>>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)&& translator.Assignable<UnityEngine.Vector3>(L, 5)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6)) 
                {
                    System.Collections.Generic.List<UnityEngine.Vector3> _list = (System.Collections.Generic.List<UnityEngine.Vector3>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
                    int _id = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.Vector3 _start;translator.Get(L, 4, out _start);
                    UnityEngine.Vector3 _end;translator.Get(L, 5, out _end);
                    bool _forceEnd = LuaAPI.lua_toboolean(L, 6);
                    
                        var gen_ret = gen_to_be_invoked.GetPathByObstacle( ref _list, _id, _start, _end, _forceEnd );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.Push(L, _list);
                        
                    
                    
                    
                    return 2;
                }
                if(gen_param_count == 5&& translator.Assignable<System.Collections.Generic.List<UnityEngine.Vector3>>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)&& translator.Assignable<UnityEngine.Vector3>(L, 5)) 
                {
                    System.Collections.Generic.List<UnityEngine.Vector3> _list = (System.Collections.Generic.List<UnityEngine.Vector3>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
                    int _id = LuaAPI.xlua_tointeger(L, 3);
                    UnityEngine.Vector3 _start;translator.Get(L, 4, out _start);
                    UnityEngine.Vector3 _end;translator.Get(L, 5, out _end);
                    
                        var gen_ret = gen_to_be_invoked.GetPathByObstacle( ref _list, _id, _start, _end );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.Push(L, _list);
                        
                    
                    
                    
                    return 2;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.PveFindPathManager.GetPathByObstacle!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_FindAttackPosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Gameplay.PVE.Entity.BattleUnit _attackerUnit = (Gameplay.PVE.Entity.BattleUnit)translator.GetObject(L, 2, typeof(Gameplay.PVE.Entity.BattleUnit));
                    Gameplay.PVE.Entity.BattleUnit _targetUnit = (Gameplay.PVE.Entity.BattleUnit)translator.GetObject(L, 3, typeof(Gameplay.PVE.Entity.BattleUnit));
                    float _attackRange = (float)LuaAPI.lua_tonumber(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.FindAttackPosition( _attackerUnit, _targetUnit, _attackRange );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetMortalPath(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _currentPosition;translator.Get(L, 2, out _currentPosition);
                    UnityEngine.Vector3 _stagePosition;translator.Get(L, 3, out _stagePosition);
                    
                        var gen_ret = gen_to_be_invoked.GetMortalPath( _currentPosition, _stagePosition );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetVehiclePath(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _stagePosition;translator.Get(L, 2, out _stagePosition);
                    
                        var gen_ret = gen_to_be_invoked.GetVehiclePath( _stagePosition );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<Gameplay.PVE.Entity.UnitBase>(L, 2)) 
                {
                    Gameplay.PVE.Entity.UnitBase _unit = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 2, typeof(Gameplay.PVE.Entity.UnitBase));
                    
                    gen_to_be_invoked.AddUnit( _unit );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<Gameplay.PVE.TurnBase.BattleUnit>(L, 2)) 
                {
                    Gameplay.PVE.TurnBase.BattleUnit _unit = (Gameplay.PVE.TurnBase.BattleUnit)translator.GetObject(L, 2, typeof(Gameplay.PVE.TurnBase.BattleUnit));
                    
                    gen_to_be_invoked.AddUnit( _unit );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.PveFindPathManager.AddUnit!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveUnit(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<Gameplay.PVE.Entity.UnitBase>(L, 2)) 
                {
                    Gameplay.PVE.Entity.UnitBase _unit = (Gameplay.PVE.Entity.UnitBase)translator.GetObject(L, 2, typeof(Gameplay.PVE.Entity.UnitBase));
                    
                    gen_to_be_invoked.RemoveUnit( _unit );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& translator.Assignable<Gameplay.PVE.TurnBase.BattleUnit>(L, 2)) 
                {
                    Gameplay.PVE.TurnBase.BattleUnit _unit = (Gameplay.PVE.TurnBase.BattleUnit)translator.GetObject(L, 2, typeof(Gameplay.PVE.TurnBase.BattleUnit));
                    
                    gen_to_be_invoked.RemoveUnit( _unit );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.PveFindPathManager.RemoveUnit!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddObstacle(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)) 
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
                    UnityEngine.Vector3 _size;translator.Get(L, 4, out _size);
                    
                    gen_to_be_invoked.AddObstacle( _id, _position, _size );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<Gameplay.PVE.Data.RpgLevelData.RpgObstacle>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) 
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
                    Gameplay.PVE.Data.RpgLevelData.RpgObstacle _obstacle = (Gameplay.PVE.Data.RpgLevelData.RpgObstacle)translator.GetObject(L, 4, typeof(Gameplay.PVE.Data.RpgLevelData.RpgObstacle));
                    int _stageId = LuaAPI.xlua_tointeger(L, 5);
                    
                    gen_to_be_invoked.AddObstacle( _id, _position, _obstacle, _stageId );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.PveFindPathManager.AddObstacle!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveObstacle(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                    gen_to_be_invoked.RemoveObstacle( _id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_AddStaticBlocks(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    System.Collections.Generic.List<System.Collections.Generic.List<bool>> _blocks = (System.Collections.Generic.List<System.Collections.Generic.List<bool>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<System.Collections.Generic.List<bool>>));
                    UnityEngine.Vector3 _position;translator.Get(L, 3, out _position);
                    
                    gen_to_be_invoked.AddStaticBlocks( _blocks, _position );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckIsClear(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    int _width = LuaAPI.xlua_tointeger(L, 3);
                    int _height = LuaAPI.xlua_tointeger(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.CheckIsClear( _position, _width, _height );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_FindValidPosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 6&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)&& translator.Assignable<Gameplay.PVE.PveTargetSearchHelper.RegionAdapter>(L, 6)) 
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    int _width = LuaAPI.xlua_tointeger(L, 3);
                    int _height = LuaAPI.xlua_tointeger(L, 4);
                    int _range = LuaAPI.xlua_tointeger(L, 5);
                    Gameplay.PVE.PveTargetSearchHelper.RegionAdapter _regionAdapter = translator.GetDelegate<Gameplay.PVE.PveTargetSearchHelper.RegionAdapter>(L, 6);
                    
                        var gen_ret = gen_to_be_invoked.FindValidPosition( ref _position, _width, _height, _range, _regionAdapter );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.PushUnityEngineVector3(L, _position);
                        translator.UpdateUnityEngineVector3(L, 2, _position);
                        
                    
                    
                    
                    return 2;
                }
                if(gen_param_count == 5&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) 
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    int _width = LuaAPI.xlua_tointeger(L, 3);
                    int _height = LuaAPI.xlua_tointeger(L, 4);
                    int _range = LuaAPI.xlua_tointeger(L, 5);
                    
                        var gen_ret = gen_to_be_invoked.FindValidPosition( ref _position, _width, _height, _range );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.PushUnityEngineVector3(L, _position);
                        translator.UpdateUnityEngineVector3(L, 2, _position);
                        
                    
                    
                    
                    return 2;
                }
                if(gen_param_count == 4&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) 
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    int _width = LuaAPI.xlua_tointeger(L, 3);
                    int _height = LuaAPI.xlua_tointeger(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.FindValidPosition( ref _position, _width, _height );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.PushUnityEngineVector3(L, _position);
                        translator.UpdateUnityEngineVector3(L, 2, _position);
                        
                    
                    
                    
                    return 2;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.PveFindPathManager.FindValidPosition!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckIsWalkable(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 4&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<Gameplay.PVE.AStarBlockType>(L, 4)) 
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    int _id = LuaAPI.xlua_tointeger(L, 3);
                    Gameplay.PVE.AStarBlockType _blockType;translator.Get(L, 4, out _blockType);
                    
                        var gen_ret = gen_to_be_invoked.CheckIsWalkable( _position, _id, _blockType );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 3&& translator.Assignable<UnityEngine.Vector3>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    int _id = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.CheckIsWalkable( _position, _id );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Gameplay.PVE.PveFindPathManager.CheckIsWalkable!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckIsCanWalkForward(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 3, out _forward);
                    int _id = LuaAPI.xlua_tointeger(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.CheckIsCanWalkForward( _position, _forward, _id );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CheckIsOutOfBound(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    
                        var gen_ret = gen_to_be_invoked.CheckIsOutOfBound( _position );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetFirstAvailablePosition(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Gameplay.PVE.PveFindPathManager gen_to_be_invoked = (Gameplay.PVE.PveFindPathManager)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _position;translator.Get(L, 2, out _position);
                    UnityEngine.Vector3 _forward;translator.Get(L, 3, out _forward);
                    int _id = LuaAPI.xlua_tointeger(L, 4);
                    
                        var gen_ret = gen_to_be_invoked.GetFirstAvailablePosition( ref _position, _forward, _id );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    translator.PushUnityEngineVector3(L, _position);
                        translator.UpdateUnityEngineVector3(L, 2, _position);
                        
                    
                    
                    
                    return 2;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Instance(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Gameplay.PVE.PveFindPathManager.Instance);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
		
		
		
		
    }
}
